<template>
  <div class='music-index'>
    <van-cell-group inset>
      <div class="tileBox">
        <div class="title">音乐</div>
        <div class="append">添加</div>
      </div>
      <van-cell
        v-if="likeMusicObj"
        title="我喜欢的音乐"
        :to="{
          name: 'songList',
          params: {
            songListId: likeMusicObj.id
          }
        }"
      />
      <van-cell title="最近播放" to="recentlyPlayed"/>
      <van-cell title="我的云盘" />
      <van-cell title="我的购买" />
      <van-cell title="我的好友" />
      <van-cell title="我的收藏" />
    </van-cell-group>
  </div>
</template>

<script>
import { Cell, CellGroup } from 'vant'
export default {
  name: 'music',
  components: {
    [Cell.name]: Cell,
    [CellGroup.name]: CellGroup
  },
  props: {
    likeMusicObj: {
      required: true
    }
  },
  data () {
    return {}
  },
  computed: {},
  watch: {},
  created () {},
  mounted () {},
  methods: {}
}
</script>
<style lang='less' scoped>
.music-index {
  .tileBox {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 17px 17px 0px 17px;
    .title {
      font-size: 21px;
    }
    .append {
      height: 20px;
      width: 45px;
      border: 1px solid #cfcfcf;
      border-radius: 20px;
      font-size: 13px;
      text-align: center;line-height: 20px;
      color: #cfcfcf;
    }
  }
  .van-cell-group--inset {
    box-shadow: 0px 0px 32px #ebebeb;
      border-radius: 15px;
    .van-cell {
      height: 67px;
      line-height: 70px;
      font-size: 18px;
    }
    .van-cell::after {
      border-bottom: 2px solid #f1f0f0;
    }
  }
}
</style>
